﻿@{
    SEC_RECORD record = ViewBag.RECORD as SEC_RECORD;
    SEC_END end_record = ViewBag.END_RECORD as SEC_END;
    List<SEC_PAY_DETAIL> pay_list = ViewBag.PayList as List<SEC_PAY_DETAIL>;
 }
<div style="width:650px;">
    <h2 style="text-align:center;">国网重庆电力交通事故结案书</h2>
    <table class="reportTable" cellspacing="1" cellpadding="1"  border="0">
        <tr >
            <td class="left">事故单位：</td>
            <td class="right">
                @ViewBag.DeptName</td>
            <td class="left">牌照号：</td>
            <td class="right">
                @record.RECORD_NO</td>
        </tr>
        <tr >
            <td class="left">驾驶员：</td>
            <td class="right">
                @ViewBag.DriverName</td>
            <td class="left">车型：</td>
            <td class="right">
                @ViewBag.CarClassName </td>
        </tr>
        <tr >
            <td class="left">事故时间：</td>
            <td class="right">
                @record.SEC_DATE.ToString("yyyy-MM-dd")</td>
            <td class="left">保险单号：</td>
            <td class="right">
                @record.INSURE_NO</td>
        </tr>
        <tr >
            <td class="left">航程起至：</td>
            <td class="right" colspan="3">
                @record.FROM_TO</td>
        </tr>
        <tr >
            <td class="left">事故地点：</td>
            <td class="right" colspan="3">
                @record.SEC_PLACE</td>
        </tr>
    </table>
    
    <table class="reportTable" cellspacing="1" cellpadding="1"  border="0">
        <tr >
            <td class="left">伤亡人数：</td>
            <td class="left">轻伤</td>
            <td class="right">
                @record.INJURY_EASY</td>
            <td class="left">重伤</td>
            <td class="right">
                @record.INJURY_HEAVY</td>
            <td class="left">死亡</td>
            <td class="right">
                @record.DIED</td>
        </tr>
    </table>
    
    <table class="reportTable" cellspacing="1" cellpadding="1"  border="0">
        <tr>
            <td style="width:20px; text-align:center;">事<br />故<br />概<br />况</td>
            <td class="right">
                @record.SEC_CAUSE</td>
            
        </tr>
        <tr>
            <td style="width:20px; text-align:center;">责<br />任<br />认<br />定</td>
            <td class="right"> 
                @record.REMARK</td>
        </tr>
    </table>
    
    <table class="reportTable" cellspacing="1" cellpadding="1"  border="0">
        <tr>
            <td style="width:20px; text-align:center;">伤<br />者</td>
            <td class="right">
                @end_record.OWN_INJURY</td>
            <td style="width:20px; text-align:center;">第<br />三<br />者</td>
            <td class="right"> 
                @end_record.THIRD_INJURY</td>
        </tr>
    </table>
    
    <table class="reportTable" cellspacing="1" cellpadding="1"  border="0">
        <tr>
            <td style="width:20px; text-align:center;">我<br />方<br />赔<br />偿<br />明<br />细</td>
            <td class="right" valign="top" width="305px">
                <table>
                    @{
                        foreach (var item in pay_list.Where(a => a.PAY_KIND == "T"))
                        {
                            <tr>
                                <td>@item.FEE_NAME</td>
                                <td>@item.REAL_MONEY</td>
                            </tr>
                            
                        }
                    }  
                </table>
            </td>
            <td style="width:20px; text-align:center;">第<br />三<br />方<br />赔<br />偿<br />明<br />细</td>
            <td class="right" valign="top" width="305px"> 
                <table>
                @{
                foreach (var item in pay_list.Where(a=>a.PAY_KIND=="F"))
                {
                    <tr>
                        <td>@item.FEE_NAME</td>
                        <td>@item.REAL_MONEY</td>
                    </tr>
                }
                }
                    </table>
            </td>
        </tr>
        <tr>
            <td style="width:20px; text-align:center;">我<br />方<br />备<br />注</td>
            <td class="right">
                @end_record.OWN_STATUS</td>
            <td style="width:20px; text-align:center;">第<br />三<br />方<br />备<br />注</td>
            <td class="right"> 
                @end_record.INJURY_STATUS</td>
        </tr>
    </table>
    <table class="reportTable" cellspacing="1" cellpadding="1"  border="0">
        <tr >
            <td class="left">赔偿系数：</td>
            <td class="right">
                @end_record.PAY_XS</td>
            <td class="left">金额合计：</td>
            <td class="right">
                @end_record.FACT_MONEY</td>
        </tr>
        <tr >
            <td class="left">赔偿事宜：</td>
            <td class="right">
                @end_record.PAY_CASE</td>
            <td class="left">请付单位：</td>
            <td class="right">
                @end_record.PAY_DEPT</td>
        </tr>
        <tr >
            <td class="left">开户行：</td>
            <td class="right">
                @end_record.PAY_BANK</td>
            <td class="left">帐号：</td>
            <td class="right">
                @end_record.ACCOUNT</td>
        </tr>
        <tr style="height:40px" >
            <td class="left">经办人：</td>
            <td class="right">
                </td>
            <td class="left">主管领导：</td>
            <td class="right">
                </td>
        </tr>
        
     </table>
    <div style="text-align:right;padding-top:3px">
        
        <div style="text-align:left;float:left">结案时间：@end_record.END_DATE.ToString("yyyy-MM-dd")</div>
        <strong><span style="font-size: 14pt">国网重庆电力交通安全办公室</span></strong></div>
    </div>